﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListReader.ascx.cs" Inherits="LibrarayModules_ucListReader" %>
<%@ Register assembly="DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
 <script type="text/javascript" src="<%=clsPublic.myURL() %>js/library/SelectRowEvent.js"></script>
<dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%">
    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
<div style="padding-bottom: 10px;">
        
  <table cellpadding="0" cellspacing="0" style="margin-bottom: 14px">
        <tr>
            <td>
                <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="false" UseSubmitBehavior="false"
                    Text="Select All on Page">
                    <ClientSideEvents Click="function() { grid.SelectAllRowsOnPage() }" />
                </dx:ASPxButton>
            </td>
            <td style="padding-left: 4px">
                <dx:ASPxButton ID="ASPxButton2" runat="server" AutoPostBack="false" UseSubmitBehavior="false"
                    Text="Unselect All on Page">
                    <ClientSideEvents Click="function() { grid.UnselectAllRowsOnPage() }" />
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server"
        KeyFieldName="Reader_ID" Width="100%">
        <SettingsBehavior AllowDragDrop="false" ColumnResizeMode="Control" 
            ConfirmDelete="True" />
        <Columns>
            <dx:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0">
                <HeaderTemplate>
                    <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="Select/Unselect all rows on the page" />
                </HeaderTemplate>
                <EditButton Visible="True">
                </EditButton>
                <DeleteButton Visible="True">
                </DeleteButton>
                <ClearFilterButton Visible="True">
                </ClearFilterButton>
                <HeaderStyle HorizontalAlign="Center" />
            </dx:GridViewCommandColumn>
            <dx:GridViewDataColumn FieldName="Reader_Name" VisibleIndex="1" Caption="Tên" >
                <HeaderStyle VerticalAlign="Middle" />
            </dx:GridViewDataColumn>
            <dx:GridViewDataColumn FieldName="Email" VisibleIndex="2" />
            <dx:GridViewDataColumn FieldName="KindOfReaders_Name" VisibleIndex="3" 
                Caption="Loại người đọc" />
            <dx:GridViewDataColumn FieldName="CreationDate" VisibleIndex="4" 
                Caption="Ngày tạo" />
           
            <dx:GridViewDataTextColumn FieldName="Reader_ID" ReadOnly="True" 
                ShowInCustomizationForm="True" Visible="False" VisibleIndex="5">
            </dx:GridViewDataTextColumn>
           
        </Columns>
        <Settings ShowFilterRow="True" ShowGroupPanel="True" />
    </dx:ASPxGridView>
        </dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>

<dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" Width="100%" 
    Height="162px">
    <PanelCollection>
<dx:PanelContent runat="server" SupportsDisabledAttribute="True">
 <table id="Table2" style="border-collapse: collapse" cellpadding="0" width="100%"
            border="0">
            <tr>
                <td width="150" height="10">
                </td>
                <td height="10">
                </td>
            </tr>
            <tr style="display: none;">
                <td width="150" class="name_fild_row">
                    &nbsp;<asp:Label ID="lblId" runat="server">Id</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtId" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">
                    &nbsp;<asp:Label ID="lblName" runat="server">Tên</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="150" class="name_fild_row">
                    &nbsp;<asp:Label ID="lblOrd" runat="server">Thứ tự</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtOrd" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
             
            <tr>
                <td width="150" class="name_fild_row">
                    &nbsp;<asp:Label ID="lblLink" runat="server">Đường dẫn</asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtLink" runat="server" Width="200px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td width="150">
                    &nbsp;
                </td>
                <td>
                    &nbsp;<asp:LinkButton ID="lbtUpdate" CssClass="update" runat="server" OnClick="lblUpdate_Click">Cập nhật</asp:LinkButton>&nbsp;&nbsp;<asp:LinkButton
                        ID="lblBack" runat="server" CssClass="back" OnClick="lblBack_Click">Trở lại</asp:LinkButton>
                </td>
            </tr>
        </table>
        </dx:PanelContent>
</PanelCollection>
</dx:ASPxRoundPanel>
